package com.gzz.orchid.context.infrastructure.persistence.entity.inv;

import com.gzz.orchid.context.infrastructure.persistence.AbstractPojo;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 库存流水表 inv_stock_flow
 *
 * @author higmd
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class InvStockFlowPo extends AbstractPojo {
    private Long id;
    /**
     * 库存ID inv_id
     */
    private Long invId;
    /**
     * 仓库编码 wh_code
     */
    private String whCode;
    /**
     * 交易类型 trade_type
     * transactionType
     * 'ADJUSTMENT','INBOUND','OUTBOUND','RETURN'
     */
    private String tradeType;
    /**
     * 交易数量 quantity
     */
    private Integer quantity;

    /**
     * 变更前库存 previous_qty
     */
    private Integer previousQty;
    /**
     * 变更后库存 current_qty
     */
    private Integer currentQty;
    /**
     * 交易时间 occur_at
     */
    private LocalDateTime occurAt;
    /**
     * 变更备注(原因、异常说明) remark
     */
    private String remark;
    /**
     * 关联单号 reference_no
     */
    private String referenceNo;
    /**
     * 外部单据号 external_no
     */
    private String externalNo;
}
